﻿namespace MagicWatering.Data.DataModel
{
    using System.Runtime.Serialization;

    [DataContract]
    public class WateringLine
    {
        #region Constructors and Finalizers

        /// <summary>
        ///     Default constructor.
        /// </summary>
        public WateringLine()
        {
        }

        public WateringLine(int channelId, int secondsDuration) : this()
        {
            Channel = channelId;
            SecondsDuration = secondsDuration;
        }

        #endregion

        #region Public Properties

        /// <summary>
        ///     Channel ID.
        /// </summary>
        [DataMember]
        public int Channel
        {
            get;
            set;
        }

        /// <summary>
        ///     Watering duration.
        /// </summary>
        [DataMember]
        public int SecondsDuration
        {
            get;
            set;
        }

        #endregion
    }
}